<div class="content">
	<div class="text-right" style="margin-bottom: 20px;">
		<button ng-click="add()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
		<button ng-click="goback()" type="button" class="btn btn-secondary"><i class="iconfont icon-back"></i>&nbsp;返回</button>
	</div>
	<table class="table table-hover table-bordered"
		   style="margin-bottom: 0px;"
		   ng-repeat="menuVo in menus | filter:{father_id:'ROOT'}">
		<thead>
		<tr>
			<td style="width: 25%;text-align: left;"><i class="iconfont {{menuVo.img}}"></i>&nbsp;
				{{menuVo.name}}<span style="color:#999;font-size: 10px">{{menuVo.comment}}</span><input type="checkbox" id="menu_{{menuVo.id}}" name="dataPk_menu"
																										value="{{menuVo.id}}" ng-click="checkmenu(menuVo)" /></td>
			<td style="text-align: left;">
				<button
						ng-repeat="button in buttons | filter:{fk_menuid:menuVo.id}"
						ng-click="updateButton(button)" type="button"
						class="btn btn-sm btn-{{button.style}}" style="margin: 5px 2px;">
					<input type="checkbox" id="button_{{button.id}}" name="dataPk_button"
						   value="{{button.id}},{{button.fk_menuid}}" ng-click="checkbutton(button)" /> <i
						class="iconfont {{button.img}}"></i>&nbsp; {{button.name}}
				</button>
			</td>
		</tr>
		</thead>
		<tbody
				ng-repeat="menuVo2 in menus | filter:{father_id:menuVo.id}">
		<tr>
			<td style="width: 25%;text-align: left;" scope="row">—— <i
					class="iconfont {{menuVo2.img}}"></i>&nbsp; {{menuVo2.name}}<span style="color:#999;font-size: 10px">{{menuVo2.comment}}</span><input
					type="checkbox" id="menu_{{menuVo2.id}}" name="dataPk_menu" value="{{menuVo2.id}}" ng-click="checkmenu(menuVo2)" />
			</td>
			<td style="text-align: left;">
				<button
						ng-repeat="button in buttons | filter:{fk_menuid:menuVo2.id}"
						ng-click="updateButton(button)" type="button"
						class="btn btn-sm btn-{{button.style}}" style="margin: 5px 2px;">
					<input type="checkbox" id="button_{{button.id}}" name="dataPk_button"
						   value="{{button.id}},{{button.fk_menuid}}" ng-click="checkbutton(button)" /> <i
						class="iconfont {{button.img}}"></i>&nbsp; {{button.name}}
				</button>
			</td>
		</tr>
		<tr ng-repeat="menuVo3 in menus | filter:{father_id:menuVo2.id}">
			<td style="width: 25%;text-align: left;" scope="row">—— —— <i
					class="iconfont {{menuVo3.img}}"></i>&nbsp; {{menuVo3.name }}<span style="color:#999;font-size: 10px">{{menuVo3.comment}}</span><input
					type="checkbox" id="menu_{{menuVo3.id}}" name="dataPk_menu" value="{{menuVo3.id}}" ng-click="checkmenu(menuVo3)" />
			</td>
			<td style="text-align: left;">
				<button
						ng-repeat="button in buttons | filter:{fk_menuid:menuVo3.id}"
						ng-click="updateButton(button)" type="button"
						class="btn btn-sm btn-{{button.style}}" style="margin: 5px 2px;">
					<input type="checkbox" id="button_{{button.id}}" name="dataPk_button"
						   value="{{button.id}},{{button.fk_menuid}}" ng-click="checkbutton(button)" /> <i
						class="iconfont {{button.img}}"></i>&nbsp; {{button.name}}
				</button>
			</td>
		</tr>
		</tbody>
	</table>
</div>